<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>this面试题</title>
</head>
<body>

    <script>
        var name = "aaa";
        var obj  = {
            name:"obj1",
            foo1:function()
            {
                 console.log(this.name);
            }

            // foo1:()=>
            // {
            //     console.log(this.name);
            // }
        }

        // (obj.foo1)();
        b = obj.foo1;
        b();
    </script>
    
</body>
</html>